import request from '@/utils/request'

// 查询手术操作人类型表列表 (分页)
export function selectPageSurgeryOperationPerson(query) {
  return request({
    url: '/business/surgeryOperationPerson/selectPage',
    method: 'get',
    params: query
  })
}

// 查询手术操作人类型表列表 (不分页)
export function listSurgeryOperationPerson(query) {
  return request({
    url: '/business/surgeryOperationPerson/list',
    method: 'get',
    params: query
  })
}

// 查询手术操作人类型表详细
export function getSurgeryOperationPerson(surgeryOperationPersonId) {
  return request({
    url: '/business/surgeryOperationPerson/' + surgeryOperationPersonId,
    method: 'get'
  })
}

// 新增手术操作人类型表
export function addSurgeryOperationPerson(data) {
  return request({
    url: '/business/surgeryOperationPerson',
    method: 'post',
    data: data
  })
}

// 修改手术操作人类型表
export function updateSurgeryOperationPerson(data) {
  return request({
    url: '/business/surgeryOperationPerson',
    method: 'put',
    data: data
  })
}

// 删除手术操作人类型表
export function delSurgeryOperationPerson(surgeryOperationPersonId) {
  return request({
    url: '/business/surgeryOperationPerson/' + surgeryOperationPersonId,
    method: 'delete'
  })
}
